package com.bianqian.demo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;

/**
 * 分类信息DTO
 */
@Data
public class CategoryDto {
    
    private Long id;
    private String name;
    private Integer count;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    
    public CategoryDto(Long id, String name, Integer count, LocalDateTime createTime, LocalDateTime updateTime) {
        this.id = id;
        this.name = name;
        this.count = count;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}







